import request from '@/utils/request'

// 查询用户想看的电影列表
export function listUserwantmovie(query) {
  return request({
    url: '/cinema/cinema/userwantmovie/list',
    method: 'get',
    params: query
  })
}

// 查询用户想看的电影详细
export function getUserwantmovie(id) {
  return request({
    url: '/cinema/cinema/userwantmovie/' + id,
    method: 'get'
  })
}

// 新增用户想看的电影
export function addUserwantmovie(data) {
  return request({
    url: '/cinema/cinema/userwantmovie',
    method: 'post',
    data: data
  })
}

// 修改用户想看的电影
export function updateUserwantmovie(data) {
  return request({
    url: '/cinema/cinema/userwantmovie',
    method: 'put',
    data: data
  })
}

// 删除用户想看的电影
export function delUserwantmovie(id) {
  return request({
    url: '/cinema/cinema/userwantmovie/' + id,
    method: 'delete'
  })
}

// 导出用户想看的电影
export function exportUserwantmovie(query) {
  return request({
    url: '/cinema/cinema/userwantmovie/export',
    method: 'get',
    params: query
  })
}